package com.example.myplugin

import android.content.Context
import android.util.Log
import android.view.View
import com.example.mylibrary.IPluginViewHost

class DemoPluginViewHost : IPluginViewHost {

    companion object {
        private const val TAG = "DemoPluginViewHost"
    }

    override fun createView(context: Context): View {
        Log.i(TAG, "createView: $context")
//        val textView = TextView(context).apply {
//            text = "Hello from Plugin View!"
//            textSize = 20f
//            setTextColor(Color.BLUE)
//            setBackgroundColor(Color.LTGRAY)
//            setPadding(40, 40, 40, 40)
//        }
//        return textView
        return MyPluginView(context)
    }

}